<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
         <span>
             {{reverseMsg}}
         </span>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.config.productionTip = false;

    new Vue({
        el:"#app",
        data:{
            msg:"戏子入画 一生天涯"
        },
        computed:{
            reverseMsg(){
                //实现3个流程
                console.log("computed")
                return this.msg.split("").reverse().join("")
            }
        },
        mounted(){
            setTimeout(()=>{
                this.msg = "1234567"
            },2000)
        }
    })
</script>
</html>